package com.example.bausip;

public class User {
	private int id;
	private String username, password;
	private boolean notification;

	public User(String username, String password) {
		this.setUsername(username);
		this.setPassword(password);
	}

	public User(int id, String username) {
		this.setUsername(username);
		this.setId(id);
	}
	public User(){}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setEncPassword(String pass) {
		this.password = // Hashing.sha256().hashString(
		password
		// , Charsets.UTF_8).toString()
		;
	}

	public boolean isNotification() {
		return notification;
	}

	public void setNotification(boolean notification) {
		this.notification = notification;
	}

}
